package com.pactera.bledemo

import android.app.Application
import android.content.Context
import cn.com.heaton.blelibrary.ble.Ble
import cn.com.heaton.blelibrary.ble.BleLog
import cn.com.heaton.blelibrary.ble.model.BleDevice
import com.pactera.bledemo.config.GlobalConfig
import com.pactera.library.config.LibraryConfig
import java.util.*

/**
 * @author ypk
 * 创建日期：2021/9/10  14:07
 * 描述：
 */
class InitApplication : Application() {
    companion object {
        private var sApplication: Application? = null
        private var sContext: Context? = null


        public fun getApplication(): Application? {
            return sApplication
        }

        public fun getContext(): Context? {
            return sContext
        }
    }

    override fun onCreate() {
        super.onCreate()
        sApplication = this;
        sContext = applicationContext;
        LibraryConfig.initLibraryConfig(
            GlobalConfig.isDebugMode,
            sApplication,
            sContext,
        )

    }


}